package com.fwj.demo;

/**
 * @author stone.feng
 * @since 2019-02-22
 */
public class Test {

    int i = 0;

    public static void main(String[] args) {

        B b = new B();
        b.tt();

    }

    static class A {
        void test() {
            System.out.println("A - test");
        }

        public static void main(String[] args) throws Exception {
            System.out.println("start");
            Thread.sleep(1000);
            System.out.println("end");
        }
    }

    static class B extends A {
        @Override
        void test() {
            System.out.println("B - test");
        }

        void tt() {
            test();
        }
    }

    void C() {
        System.out.println(i);
    }


}

